﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TrianglerPerimeterCalculator
{
    class Triangle
    {
        private Point A;
        private Point B;
        private Point C;

        public Triangle()
        {
            A = new Point();
            B = new Point();
            C = new Point();
        }

        public Triangle(Point A, Point B, Point C)
        {
            this.A = new Point(A);
            this.B = new Point(B);
            this.C = new Point(C);
        }

        public double perimeter()
        {
            double side1 = A.distance(B);
            double side2 = B.distance(C);
            double side3 = C.distance(A);
            double res = side1 + side2 + side3;
            return res;
        }
    }
}
